package com.hong.serviceorder.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hong.model.model.order.OrderInfo;
import com.hong.model.vo.order.OrderCountQueryVo;
import com.hong.model.vo.order.OrderQueryVo;
import org.springframework.stereotype.Service;

import java.util.Map;

public interface OrderService extends IService<OrderInfo> {
    Long saveOrder(String scheduleId, Long patientId) throws InterruptedException;

    OrderInfo getOrder(Long orderId);

    void patientTips();

    IPage<OrderInfo> selectPage(Page<OrderInfo> pageParam, OrderQueryVo orderQueryVo);

    boolean cancelOrder(Long orderId);
    //预约统计
    Map<String,Object> getCountMap(OrderCountQueryVo orderCountQueryVo);

    IPage<OrderInfo> selectAdminPage(Page<OrderInfo> pageParam, OrderQueryVo orderQueryVo);
}
